﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace XFGameFramework
{
    public static class BoundsExtensions
    {

        public static bool Contains(this Bounds b, Bounds bounds) 
        {
            if (b.min.x <= bounds.min.x && b.min.y <= bounds.min.y && b.min.z <= bounds.min.z &&
                b.max.x >= bounds.max.x && b.max.y >= bounds.max.y && b.max.z >= bounds.max.z)
            {
                return true;
            }

            return false;
        }

    }

}

